import http from "@/utils/http"

const enum USERAPI_LISt {
  login = "/login"
}

export interface IUserData {
  username: string
  password: string
}
export async function login<T>(data: IUserData) {
  return http.post<T>(USERAPI_LISt.login, data)
}
